package com.sykj.controller;

import com.sykj.bean.bis.BisShop;
import com.sykj.service.BisShopService;
import com.sykj.util.reponse.CommonEnum;
import com.sykj.util.reponse.ResultBody;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @program: BeautyClub
 * @description:
 * @author: qiaoli
 * @create: 2020-08-10 08:53
 */
@RestController
@RequestMapping("/bishop")
public class BisShopController {
    @Autowired
    BisShopService bisShopService;


@RequestMapping("/querylist")
public ResultBody queryBisShop(){
    List<BisShop> list = bisShopService.list();
     return  new ResultBody(CommonEnum.SUCCESS, list);
}
}
